File description ...


Properties


EOF

bool EOF

Gets whether you have reached the end of the file.


Error

bool Error

Gets whether any errors occurred reading or writing the file.


Methods


Close

void Close()

Closes the file.


Delete

static void Delete(string filename)

Deletes the specified file from the disk.


Exists

static bool Exists(string filename)

Checks if the specified file exists on the file system.


Open

static File Open(string filename, FileMode fileMode)

Opens a disk file for reading or writing. These disk I/O functions are only intended for simple tasks.


ReadInt

LooseInteger ReadInt()

Reads an integer value from the file.


ReadRawChar

int ReadRawChar()

Reads the next raw byte from the file.


ReadRawInt

int ReadRawInt()

Reads the next raw 32-bit int from the file.


ReadRawLineBack

string ReadRawLineBack()

Reads the next raw line of text from the file.


ReadStringBack

string ReadStringBack()

Reads the next string from the file.


WriteInt

void WriteInt(int value)  
void WriteInt(bool value)

Writes an integer to the file.


WriteRawChar

void WriteRawChar(int value)

Writes a raw byte to the file.


WriteRawLine

void WriteRawLine(string text)

Writes a raw line of text to the file.


WriteString

void WriteString(string text)

Writes a string to the file.